<template>
  <div>
    <input type="text" v-model="msg" />
    <span>{{ msg }}</span>
    <br />
    <input type="text" :value="msg" @input="msg = $event.target.value" />
    <span>{{ msg }}</span>
    <Test1 :value="msg" @input="msg = $event" />
  </div>
</template>

<script>
import Test1 from "./Test1.vue";
export default {
  name: "Test",
  data() {
    return {
      msg: "我爱你塞北的大雪",
    };
  },
  components: {
    Test1,
  },
};
</script>

<style></style>
